Data Processing System and a Method of Operating a Rendering Platform

ABSTRACT

A method of operating a rendering platform comprises receiving a rendering fragment at a rendering engine, passing an instruction from a rendering fragment to a callback component, and making a procedure call from the callback component to an external application according to the instruction. The method preferably includes registering one or more rendering devices on the rendering engine, and registering the callback component on the rendering engine as a rendering device.

This invention relates to a method of operating a rendering platform and to a data processing system that includes a rendering platform. The invention supports the calling of external services by means of rendering assets.

Today distributed rendering platforms such as described in WO 02/092183 allow authors to define interactive media presentations that span multiple input/output devices, such as lamps, fans, displays etc. The rendering platform renders “events”, and there is often an event mechanism present that allows the rendering platform to render external events, for example, from a device by means of the ‘event’ language element in the specification defining the platform. However, it is not possible for third-party applications to react to an event triggered by the distributed media presentation engine. One possible solution to this problem is to expose the inner state of the rendering platform to the third-party application, but this is often not desired in view of security.

Third-party applications can add documents (sometimes referred to as fragments) that contain events and thereby have a means to affect the state of the rendering platform but the communication is only in one direction, from the third-party application to the rendering platform. Therefore it is impossible for third-party applications to react to changes in the state of the rendering platform. The application could try to keep a consistent copy of the state of the rendering platform, but this is not desirable, especially in highly distributed environments where there could be many of such applications active. As a result, applications can only ‘guess’ when to add or retract documents from the rendering platform. This implies that the rendering platform can only be used for relatively static distributed media presentations that involve only a limited form of interaction with end-users or third-party agents. The functionality that can be offered by the rendering platform and associated language is limited. For more complex rendering operations, for example three-dimensional manipulation on three-dimensional objects, most hypermedia markup languages are inadequate.

It is therefore an object of the invention to improve upon the known art.

According to a first aspect of the present invention, there is provided a method of operating a rendering platform comprising receiving a rendering fragment at a rendering engine, passing an instruction from a rendering fragment to a callback component, and making a procedure call from the callback component to an external application according to the instruction.

According to a second aspect of the present invention, there is provided a data processing system comprising a rendering engine, one or more rendering devices, a callback component, and an external application, the rendering engine arranged to receive rendering fragments and to pass an instruction from a rendering fragment to the callback component, and the callback component arranged to make a procedure call to the external application according to the instruction.

According to a third aspect of the present invention, there is provided a computer program product on a computer readable medium for operating a rendering platform and comprising instructions for receiving a rendering fragment at a rendering engine, passing an instruction from a rendering fragment to a callback component, and making a procedure call from the callback component to an external application according to the instruction.

Owing to the invention, it is possible to operate a rendering platform in such a way that an external application can be called from a component within the rendering platform, but without that procedure call passing through the rendering engine. The command for the procedure call, the instruction passed to the callback component, is passed through the rendering engine, however the rendering engine does not look at the contents of the instruction, but treats it as a string value and forwards it to the appropriate callback component. The benefits of this invention include the fact that it is highly generic, in that it will work with any type of application because a specific callback component can be written for each application. A more generic callback component (based on the SOAP protocol for example) is also possible, which does not require modification of the rendering platform. All that is required is a callback component to be implemented, and the internals of the rendering platform are not exposed.

The invention provides the solution to the problem of accessing an external application in two parts. Firstly, there is implemented a rendering device that implements a callback mechanism for the third-party application. Second, a procedure call as a media asset/item in the presentation language is submitted to the rendering engine.

Advantageously, the method further comprises registering one or more rendering devices on the rendering engine, and registering the callback component on the rendering engine. Preferably, the callback component is registered on the rendering engine as a rendering device. By registering the callback component as if it were a rendering device in the rendering platform, the rendering engine will always address the callback component as a rendering device and no amendment to the operation of the rendering engine is required.

Preferably, the registering of a rendering device or the callback component comprises receiving an XML document, and the registering of the callback component comprises receiving an XML document from the external application.

Ideally, the instruction from the rendering fragment passed to the callback component comprises the procedure call.

Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

FIG. 1 is a schematic diagram of a data processing system,

FIG. 2 is a further schematic diagram of the data processing system of FIG. 1.

FIGS. 1 and 2 show a data processing system 10, which comprises a rendering platform 12, which is comprised of a rendering engine 14, rendering devices 16 and a callback component 18. Included within the system 10 is an application 20, which is external to the rendering platform 12. In FIG. 1, the rendering devices 16 and callback component 18 are being registered with the rendering engine 14, by means of XML documents 22 being provided to the rendering engine 14.

To register itself as a new device, the callback component 18 must register with the rendering engine 14. This is achieved by sending a document 22 to the rendering engine 14 that describes the capability of the callback component 18 and its location. The document 22 registering the callback component 18 originates with the third-party application 20, and this is the methodology by which the external application 20 can be called from the rendering platform 12.

The code fragment below is an example of the contents of the document 22. The format and syntax of the document 22 will depend upon the details of the rendering platform 12.

<pml> <fragment> <device> callback <capability> <type> external_application </type> </capability> <location> ANYWHERE </location> </device> </fragment> </pml>

The rendering engine 14 will interpret this document 22 as the registration of a new device named callback with a capability to call procedures on an external application (type external_application). The device can be in any location (ANYWHERE). Once the device is registered with the rendering engine 14 it can be used. By rendering itself as a device, the callback component 18 is treated by the rendering engine 14 as if it were any other device in the platform.

The rendering engine 14 will receive rendering fragments (such as document 24 in FIG. 2), which are then distributed in whole or part to the rendering devices 16 and the callback component 18. The callback component 18 is effectively a special type of rendering device. Instead of rendering text, audio, or some other modality, it calls procedures on the third-party application 20 when instructed to by the rendering engine 14. If all of the traditional rendering devices (light, sound, video etc.) are removed, then the rendering engine 14 can use the callback component 18 alone and can composes generic software applications. The rendering engine 14 keeps track of the internal state and, via the callback component 18, calls program procedures. The rendering engine 14 using the callback component 18 can be implemented in the following manner.

Rendering engine 14 receives the description 24 (typically an XML document) from a source, which could be the third-party application 20, which tells the engine 14 what should be rendered. The description 24 can be a fragment for a specific rendering engine or an HTML document for an HTML browser. The rendering engine 14 reads the description and gives instructions to the rendering devices 16 (for example, play or stop a media item). The code fragment below shows an example of a presentation description in a markup language suitable for use in the system of WO 02/092183.

<pml> <fragment> <asset> asset1 <state> red </state> <type> rgb_light </type> <value> 80, 0, 0 </value> <shareable> YES </shareable> </asset> </fragment> </pml>

If this fragment is added to the pool of fragments in the rendering engine 14 then the following will happen. If the state red is active in the rendering engine 14 and there are one or more devices 16 available of type rgb_light then the value 80, 0, 0 will be sent to those device(s) 16 (provided that each device has the same location attribute value as defined for the state/object red).

In a similar fashion, the third-party application 20 can now be called if a certain state becomes true. The fragment 24 may include the following XML:

<pml> <fragment> <asset> hello <state> red </state> <type> external_application </type> <value> printHello </value> <shareable> YES </shareable> </asset> </fragment> </pml>

If this fragment 24 (which may be from the third-party application 20) is added to the rendering engine 14, then the instruction 26 printHello within the document 24 will be passed to the callback component 18. The callback component 18 will make a procedure call 28 to the third-party application 20 when the state red becomes true in the rendering engine 14. The callback component 18 implements how the third-party application 20 will be called, the rendering engine 14 only knows that a ‘media asset’ hello must be ‘rendered’ with value printHello. The third-party application 20 must have implemented a remote procedure call interface to allow callback components to invoke procedure calls otherwise all external (remote) procedure calls will fail.

In summary, the document 24 with an asset description of type external-application is sent to the engine 14. The engine 14 recognizes the asset type (a device named callback registered itself with this capability before) and sends the command string printHello in the value attribute when the state becomes red to the device. The component18 invokes the printHello procedure on a third-party application 20 (locally or remote). Note that the command string may contain a complete (remote) procedure call description (e.g. in SOAP) so that the callback component 18 can be made more generic.

The approach illustrated above can also be applied to many other declarative presentation languages since many presentation languages make a distinction between device descriptions and media element descriptions. In SMIL (W3C standard for multimedia on the Web) for example, the layout section exists to specify (screen) devices and (screen) regions on devices. Language elements such as audio, video and image can be used in the main section to specify audio, video or image media items respectively. These media elements must always be associated to a region and therefore, indirectly, always link to a device. Therefore, a callback component as discussed above can be specified in the layout section and used in the main section.

The invention applies to media-enhanced environments designed to support everyday life performances (ambient intelligent environments) and context-aware systems in general. 

1. A method of operating a rendering platform (12) comprising receiving a rendering fragment (24) at a rendering engine (14), passing an instruction (26) from a rendering fragment (24) to a callback component (18), and making a procedure call (28) from the callback component (18) to an external application (20) according to the instruction (26).
 2. A method according to claim 1, and further comprising registering one or more rendering devices (16) on the rendering engine (14).
 3. A method according to claim 1, and further comprising registering the callback component (18) on the rendering engine (14).
 4. A method according to claim 3, wherein the callback component (18) is registered on the rendering engine (14) as a rendering device.
 5. A method according to claim 2, wherein the registering of a rendering device (16) or the callback component (18) comprises receiving an XML document (22).
 6. A method according to claim 5, wherein the registering of the callback component (18) comprises receiving an XML document (22) from the external application (20).
 7. A method according to claim 1, wherein the instruction (26) from the rendering fragment (24) passed to the callback component (18) comprises the procedure call (28).
 8. A data processing system comprising a rendering engine (14), one or more rendering devices (16), a callback component (18), and an external application (20), the rendering engine (14) arranged to receive rendering fragments (24) and to pass an instruction (26) from a rendering fragment (24) to the callback component (18), and the callback component (18) arranged to make a procedure call (28) to the external application (20) according to the instruction (26).
 9. A system according to claim 8, wherein the rendering engine (14), the or each rendering device (16) and the callback component (18) comprise a rendering platform (12).
 10. A system according to claim 8, wherein the or each rendering devices (16) is arranged to register on the rendering engine (14).
 11. A system according to claim 8, wherein the callback component (18) is arranged to register on the rendering engine (14).
 12. A system according to claim 11, wherein the callback component (18) is arranged to register on the rendering engine (14) as a rendering device.
 13. A system according to claim 10, wherein the registering of a rendering device (16) or the callback component (18) comprises receiving an XML document (22).
 14. A system according to claim 13, wherein the registering of the callback component (18) comprises receiving an XML document (22) from the external application (20).
 15. A system according to claim 9, wherein the instruction (26) from the rendering fragment (24) passed to the callback component (18) comprises the procedure call (28).
 16. A computer program product on a computer readable medium for operating a rendering platform (12) and comprising instructions for receiving a rendering fragment (24) at a rendering engine (14), passing an instruction (26) from a rendering fragment (24) to a callback component (18), and making a procedure call (28) from the callback component (18) to an external application (20) according to the instruction (26).
 17. A computer program product according to claim 16, and further comprising instructions for registering one or more rendering devices (16) on the rendering engine (14).
 18. A computer program product according to claim 16, and further comprising instructions for registering the callback component (18) on the rendering engine (14).
 19. A computer program product according to claim 18, wherein the callback component (18) is registered on the rendering engine (14) as a rendering device.
 20. A computer program product according to claim 17, wherein the registering of a rendering device (16) or the callback component (18) comprises receiving an XML document (22).
 21. A computer program product according to claim 20, wherein the registering of the callback component (18) comprises receiving an XML document (22) from the external application (20).
 22. A computer program product according to claim 16, wherein the instruction (26) from the rendering fragment (24) passed to the callback component (18) comprises the procedure call (28). 